package com.hobbit.ui.viewbase
{
	import com.hobbit.ui.data.UiLayoutData;
	
	import feathers.display.Sprite;
	
	/**
	 * 基类view（用于panel tip menu继承） 
	 * @author 晓晔
	 * 
	 */
	public class BaseView extends Sprite implements ICallBack
	{
		
		//数据源
		private var _layoutData:UiLayoutData;
		
		public function BaseView()
		{
			super();
		}
		
		public function callBack(type:String, data:Object):void
		{
		}
		
		
		public function close($dispose:Boolean = false):void
		{
			this.removeFromParent($dispose);
		}

		/**
		 * 布局数据源（属性、位置、关系）
		 */
		public function get layoutData():UiLayoutData
		{
			return _layoutData;
		}

		/**
		 * @private
		 */
		public function set layoutData(value:UiLayoutData):void
		{
			_layoutData = value;
		}

	}
}